<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>      
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/include/css/style.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/include/js/jquery-1.6.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('.link-back').click(function(){
		$('form[name=myForm]').attr('action','${pageContext.request.contextPath}/employee/back');
		$('.btn-save').click();
	});	
});
   
</script>

<div class="sub-content">	
	<div style="margin-top: 10px">	
		<h3>Xác nhận thông tin nhập</h3>
		<form:form method="post" action="complete" commandName="obj" name="myForm">
			<form:hidden path="empId" />
			<form:hidden path="roleId.roleId" />						
			<div style="float: left;">		
				<div style="width: 155px">
					<form:hidden path="image" />
					<img id="imageShow" src="data:image/png;base64,${obj.image}" alt="IMG DESC" width="150px" height="200px">
				</div>
			</div>
			<div style="float: left;">	
				<table>
					<tr>
						<td class="column1">Tên nhân viên:</td>
						<td>${obj.empName} <form:hidden path="empName" />
						</td>
					</tr>
					<tr>
						<td class="column1">Điện thoại:</td>
						<td>${obj.empPhone} <form:hidden path="empPhone" />
						</td>
					</tr>
					<tr>
						<td class="column1">Eail:</td>
						<td>${obj.empMail} <form:hidden path="empMail" /></td>
					</tr>
					<tr>
						<td class="column1">Thành phố:</td>
						<td>${obj.cityId.cityName} <form:hidden path="cityId.cityId" />
						</td>
					</tr>
					<tr>
						<td class="column1">
							<a href="${pageContext.request.contextPath}/employee">Danh sách</a>&nbsp;&nbsp;
							<a href="javascript:void(0)" class="link-back">Sửa</a>&nbsp;&nbsp;
						</td>
						<td>					
							<input type="submit" class="btn-save" value="Hoàn thành" />
						</td>
					</tr>
				</table>
			</div>
		</form:form>			
	</div>	
</div>	


